/**
 * 共通头部
 */
//定义跳转 使用jquery选择器语法	此部分选择器  其中main,left,right和content在各个页面的if判断语句中重写了
_EsdDynamicTransformationScript.navBlock.selector.top=".navbar";
_EsdDynamicTransformationScript.navBlock.selector.nav="#bs-example-navbar-collapse-1";
_EsdDynamicTransformationScript.navBlock.selector.footer=".znd_foot";

//当前url
_EsdDynamicTransformationScript.currentUrl = window.location.href;
//当前站点的主页判断
_EsdDynamicTransformationScript.isSiteIndexPage = (_EsdDynamicTransformationScript.currentUrl == 'http://jtyst.jl.gov.cn' || _EsdDynamicTransformationScript.currentUrl == 'http://jtyst.jl.gov.cn/' || _EsdDynamicTransformationScript.currentUrl == 'http://jtyst.jl.gov.cn/#' || _EsdDynamicTransformationScript.currentUrl == 'http://jtyst.jl.gov.cn/index.html')?true:false;

//***************	网站上部/导航栏等公共部分 begin	***************	//
	// input type为text,password类型的输入框处理
	// 预先定义几个常用的input title值
	_EsdDynamicTransformationScript.placeholderKeyword='输入关键字搜索';
	_EsdDynamicTransformationScript.placeholderUsername='用户名';
	_EsdDynamicTransformationScript.placeholderPassword='密码';
	_EsdDynamicTransformationScript.placeholderSpecialText1='您对全省城市管理效能提升工作有何意见或建议';
	_EsdDynamicTransformationScript.placeholderBtnSearch='提交按钮';
	// 搜索框 对象
	_EsdDynamicTransformationScript.inputObject = $('#textfield');
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderKeyword, 'placeholder':_EsdDynamicTransformationScript.placeholderKeyword});
	// 提交按钮 对象
	_EsdDynamicTransformationScript.inputObject = $('input[type="submit"]');
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderBtnSearch});
	
//***************	网站上部/导航栏等公共部分 end	***************	//
	
// 首页和二级页-资讯 共享一个轮播图控件 begin
if(_EsdDynamicTransformationScript.isSiteIndexPage || _EsdDynamicTransformationScript.currentUrl == 'http://jtyst.jl.gov.cn/zx_133250/'){
	//二层  *:focus{outline:2px dashed red;}
	
	//轮播前的标签
	_EsdDynamicTransformationScript.esdRotationJtystPartOneFrontNum1 = $('#searchform .searchButton');

	//文字A标签
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum1 = $('#D1pic1 a:eq(1)');
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum2 = $('#D1pic1 a:eq(3)');
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum3 = $('#D1pic1 a:eq(5)');
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum4 = $('#D1pic1 a:eq(7)');

	//原点
	_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum1 = $('#D1fBt a:eq(0) i:first');
	_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum2 = $('#D1fBt a:eq(1) i:first');
	_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum3 = $('#D1fBt a:eq(2) i:first');
	_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum4 = $('#D1fBt a:eq(3) i:first');

	//轮播后的标签
	_EsdDynamicTransformationScript.esdRotationJtystPartOneAfterNum1 = $("#newstab1_0 a:first");

	//轮播前的焦点
	_EsdDynamicTransformationScript.esdRotationJtystPartOneFrontNum1.focus(function (e) {
		$(this).bind("keydown.keydown_0_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum1.click();
				_EsdDynamicTransformationScript.esdRotationJtystPartOneANum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationJtystPartOneFrontNum1.blur(function () {
		$(this).unbind("keydown.keydown_0_0");
	});

	//第一块
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum1.focus(function (e) {
		$(this).bind("keydown.keydown_0_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum2.click();
				_EsdDynamicTransformationScript.esdRotationJtystPartOneANum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum1.blur(function () {
		$(this).unbind("keydown.keydown_0_1");
	});

	//第二块
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum2.focus(function (e) {
		$(this).bind("keydown.keydown_0_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum1.click();
				_EsdDynamicTransformationScript.esdRotationJtystPartOneANum1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum3.click();
				_EsdDynamicTransformationScript.esdRotationJtystPartOneANum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum2.blur(function () {
		$(this).unbind("keydown.keydown_0_2");
	});

	//第三块
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum3.focus(function (e) {
		$(this).bind("keydown.keydown_0_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum2.click();
				_EsdDynamicTransformationScript.esdRotationJtystPartOneANum2.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum4.click();
				_EsdDynamicTransformationScript.esdRotationJtystPartOneANum4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum3.blur(function () {
		$(this).unbind("keydown.keydown_0_3");
	});

	//第四块
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum4.focus(function (e) {
		$(this).bind("keydown.keydown_0_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationJtystPartOneCircleNum3.click();
				_EsdDynamicTransformationScript.esdRotationJtystPartOneANum3.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabJtystPartSecond1Title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationJtystPartOneANum4.blur(function () {
		$(this).unbind("keydown.keydown_0_4");
	});
	
	
	
	
}
// 首页和二级页-资讯 共享一个轮播图控件 end